package com.yourenbang.lingyun.transaction.web.domain.po;

import com.yourenbang.lingyun.core.util.json.ToJSON;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class FundAccountChangePlan implements Serializable, ToJSON {

    public FundAccountChangePlan() {
    }

    public FundAccountChangePlan(Short platNo) {
        this.platNo = platNo;
    }

    private Integer fundAccountChangePlanId;

    /**
     *   资金发起方
     */
    private Integer fundAccountId;

    /**
     *   资金接收方
     */
    private Integer toFundAccountId;

    /**
     *   一般为交易的ID，如果没有交易ID，可以自动生成一个，并且和journal表的acid关联
     */
    private String orderId;

    /**
     *   100 WAIT_TO_CHANGE  200 CHANGED 300 FAIL 400 CANCEL
     */
    private Short accountChangePlanStatus;

    private BigDecimal changeAmount;

    /**
     *   渠道 100 渠道缺失 200 mpos 300 epos
     */
    private Short channelId;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    /**
     *   逻辑删除 -1 删除，1未删除
     */
    private Byte isDel;


    private Short platNo;

    private Integer accountMainJournalType;

    private String accountMainJournalTypeName;
}
